package com.sdry.service.impl.zc;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.sdry.mapper.zc.ChangeNoticeMapper;
import com.sdry.model.zc.ChangeNotice;
import com.sdry.service.zc.ChangeNoticeService;

/**
 * @ClassName: ChangeNoticeServiceImpl 
 * @Description:工艺变更通知单Service实现
 * @Author zc
 * @Date 2018年11月5日 下午12:04:37 
 * @version 1.0
 */
@Service
public class ChangeNoticeServiceImpl implements ChangeNoticeService {

	@Resource
	private ChangeNoticeMapper changeNoticeMapper;
	
	/**
	 * 查询工艺变更通知单
	 * @param changeNotice
	 * @return
	 */
	public ChangeNotice findChangeNoticeByAdcID(ChangeNotice changeNotice) {
		// TODO Auto-generated method stub
		return changeNoticeMapper.findChangeNoticeByAdcID(changeNotice);
	}

	/**
	 * 新增工艺变更通知单
	 * @param changeNotice
	 * @return
	 */
	public Integer insertChangeNotice(ChangeNotice changeNotice) {
		// TODO Auto-generated method stub
		return changeNoticeMapper.insertChangeNotice(changeNotice);
	}

	@Override
	public List<ChangeNotice> listPageChangeNotice(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return changeNoticeMapper.listPageChangeNotice(map);
	}

	@Override
	public Integer countChangeNotice(ChangeNotice changeNotice) {
		// TODO Auto-generated method stub
		return changeNoticeMapper.countChangeNotice(changeNotice);
	}

	@Override
	public List<ChangeNotice> listAllChangeNotice() {
		// TODO Auto-generated method stub
		return changeNoticeMapper.listAllChangeNotice();
	}

	@Override
	public Integer updateChangeNotice(ChangeNotice changeNotice) {
		// TODO Auto-generated method stub
		return changeNoticeMapper.updateChangeNotice(changeNotice);
	}

	@Override
	public ChangeNotice findChangeNoticeByID(Long noticeID) {
		// TODO Auto-generated method stub
		return changeNoticeMapper.findChangeNoticeByID(noticeID);
	}

}
